<h1>Listing course_materials</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Document url</th>
    <th>Time posted</th>
  </tr>

<% for course_material in @course_materials %>
  <tr>
    <td><%=h course_material.title %></td>
    <td><%=h course_material.document_url %></td>
    <td><%=h course_material.time_posted %></td>
    <td><%= link_to 'Show', course_material %></td>
    <td><%= link_to 'Edit', edit_course_material_path(course_material) %></td>
    <td><%= link_to 'Destroy', course_material, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New course_material', new_course_material_path %>
